
import 'package:basic_web_flutter/router/app_routers.dart';
import 'package:basic_web_flutter/router/router_auth.dart';
import 'package:basic_web_flutter/view/home/home_page.dart';
import 'package:basic_web_flutter/view/login/login_page.dart';
import 'package:basic_web_flutter/view/notfound/notfound_page.dart';
import 'package:get/get.dart';

class AppPages {

  static const INITIAL = AppRouters.Home;

  static final unknownRoute = GetPage(name: AppRouters.NotFound, page: ()=> NotfoundPage());

  static final routes = [
    //需要权限校验的页面
    GetPage(
      name: AppRouters.Home,
      page: ()=> HomePage(),
      middlewares: [
        RouterAuth()
      ]
    ),

    //白名单 不需要权限校验
    GetPage(
      name: AppRouters.Login,
      page: ()=> LoginPage(),
    ),
  ];




}